/**
 * @FileName Creator1.java
 * @Package com.designMode.abstractFactory
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-5 下午3:10:16
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.abstractFactory;

/**
 * @author 顾博君
 * @ClassName Creator1
 * @Date 2016-1-5 下午3:10:16
 * @Function 产品等级1的实体工厂类
 */

public class Creator1 extends AbstractCreator {
    public Creator1() {
        System.out.println("工厂1创建");
    }

    // 只生产产品等级为1的A类产品
    @Override
    public AbstractProductA createProductA() {
        return new ProductA1();
    }

    // 只生产产品等级为1的B类产品
    @Override
    public AbstractProductB createProductB() {
        return new ProductB1();
    }
}
